import random

key = random.sample(range(0,33),8)

print(key)

a = print("请输入你的号码")
userkey = []
for i in range(8):
    a=int(input("输入号码"))
    userkey.append(a)
print(userkey)


x=set(userkey).intersection(key)
print(x)

if len(x)==8:
    print("你是一等奖")
elif len(x)==7:
    print("你是二等奖")
elif len(x)==6:
    print("你是三等奖")
elif len(x)==5:
    print("你是四等奖")
else:
    print("你没有中奖")